Skip to content

Conversation

@devmotion
Copy link
Contributor

Extracted from #187

state.alpha = _hzI0(state.x, NLSolversBase.gradient(df),
NLSolversBase.value(df),
# phi_0 is (or should be) equal to NLSolversBase.value(df, state.x)
# TODO: Make the gradient available as part of the state?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, generally only g_previous is available with the logic being that we can use the cache in the objective, but as we have discussed it makes sense to add an additional vector/array to the algorithm state because it's so much easier to ensure correctness that way. One more array won't mean anything in the full scheme

@pkofod pkofod merged commit 11d039f into JuliaNLSolvers:master Nov 26, 2025
9 checks passed
@devmotion devmotion deleted the dmw/remove_implicit branch November 26, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants